<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>userlogin</title>
</head>

<body>
<script language="javascript">
function validate(myform)
{
	if(myform.username.value.length==0)
	{
		alert("请输入用户名！");
		myform.username.focus();
		return false;
	}
	if(myform.password.value.length==0)
	{
		alert("请输入密码！");
		myform.password.focus();
		return false;
	}
}
</script>

 <p>请输入用户名和密码：</p>
 <form id="myform" name="myform" method="post" action="/test/LoginForm" onsubmit="return validate(this)">
   <p>
     <label></label>
   </p>
   <table width="312" border="0">
     <tr>
       <td width="105">用户名：
       <label> </label></td>
       <td width="197"><input name="username" type="text" id="username" size="20" maxlength="20" /></td>
     </tr>
     <tr>
       <td>密　码：</td>
       <td><input name="password" type="password" id="password" value="" size="20" /></td>
     </tr>
     <tr>
       <td><input type="submit" name="submit" id="submit" value="提交" /></td>
       <td><input type="reset" name="reset" id="reset" value="重置" /></td>
     </tr>
   </table>
   <p>&nbsp;</p>
</form>
 <p>&nbsp; </p>
</body>
</html>
